package domain;

import java.util.LinkedList;
import java.util.List;

public class User {
	
	private Integer idUser;
	private String name;
	private String surname;
	private String sex;
	private String email;
	private String login;
	private String password;
	private String country;
	private String province;
	private String city;
	private String favoriteActor;
	private String favoriteGenre;
	private List<Integer> friends;
	private List<Integer> videos;
	private String avatar;
	private Integer birthday;
	
	public User(){
		setIdUser(0);
		name="";
		surname="";
		sex="";
		email="";
		login="";
		password="";
		country="";
		province="";
		city="";
		favoriteActor="";
		favoriteGenre="";
		birthday=0;
		avatar="";
		friends = new LinkedList<Integer>();
		videos = new LinkedList<Integer>();
	}
	
	public User(Integer _idUser, String _name, String _surname,String _login, String _pass, String _sex,String _city, String _province, String _country, String _email, Integer _birthday, String _avatar,String _favoriteActor, String _favoriteGenre, List<Integer> _friends, List<Integer> _videos){
		setIdUser(_idUser);
		name=_name;
		surname=_surname;
		sex=_sex;
		email=_email;
		login=_login;
		password=_pass;
		country=_country;
		province=_province;
		city=_city;
		birthday=_birthday;
		avatar=_avatar;
		favoriteActor=_favoriteActor;
		favoriteGenre=_favoriteGenre;		
		friends = _friends;
		videos = _videos;
	}
	
	/**Constructor para crear un usuario
	 * 
	 * @param _nombre
	 * @param _apellidos
	 * @param _login
	 * @param _password
	 * @param _sexo
	 * @param _ciudad
	 * @param _provincia
	 * @param _pais
	 * @param _email
	 * @param _anioNac
	 * @param _avatar
	 * @param _actFav
	 * @param _GenFav
	 */
	public User(String _nombre, String _apellidos, String _login,
			String _password, String _sexo, String _ciudad,
			String _provincia, String _pais, String _email,
			Integer _anioNac, String _avatar, String _actFav,
			String _GenFav) {
		name=_nombre;
		surname=_apellidos;
		sex=_sexo;
		email=_email;
		login=_login;
		password=_password;
		country=_pais;
		province=_provincia;
		city=_ciudad;
		birthday=_anioNac;
		avatar=_avatar;
		favoriteActor=_actFav;
		favoriteGenre=_GenFav;		
		friends = new LinkedList<Integer>();
		videos = new LinkedList<Integer>();
	}

	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getSurname() {
		return surname;
	}
	public void setSurname(String surname) {
		this.surname = surname;
	}
	public String getSex() {
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getLogin() {
		return login;
	}
	public void setLogin(String login) {
		this.login = login;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getCountry() {
		return country;
	}
	public void setCountry(String country) {
		this.country = country;
	}
	public String getProvince() {
		return province;
	}
	public void setProvince(String province) {
		this.province = province;
	}
	public String getCity() {
		return city;
	}
	public void setCity(String city) {
		this.city = city;
	}
	public String getFavoriteActor() {
		return favoriteActor;
	}
	public void setFavoriteActor(String favoriteActor) {
		this.favoriteActor = favoriteActor;
	}
	public String getFavoriteGenre() {
		return favoriteGenre;
	}
	public void setFavoriteGenre(String favoriteGenre) {
		this.favoriteGenre = favoriteGenre;
	}
	public List<Integer> getFriends() {
		return friends;
	}
	public void setFriends(List<Integer> friends) {
		this.friends = friends;
	}
	public List<Integer> getVideos() {
		return videos;
	}
	public void setVideos(List<Integer> videos) {
		this.videos = videos;
	}

	public Integer getIdUser() {
		return idUser;
	}

	public void setIdUser(Integer idUser) {
		this.idUser = idUser;
	}
	
	public void setBirthday(Integer birthday) {
		this.birthday = birthday;
	}

	public Integer getBirthday() {
		return birthday;
	}

	public void setAvatar(String avatar) {
		this.avatar = avatar;
	}

	public String getAvatar() {
		return avatar;
	}

	@Override
	public String toString() {
		return "User [idUser=" + idUser + ", name=" + name + ", surname="
				+ surname + ", sex=" + sex + ", email=" + email + ", login="
				+ login + ", password=" + password + ", country=" + country
				+ ", province=" + province + ", city=" + city
				+ ", favoriteActor=" + favoriteActor + ", favoriteGenre="
				+ favoriteGenre + ", friends=" + friends + ", videos=" + videos
				+ "]";
	}

}
